
function setFontSize (x) {
  let fontSize = document.getElementsByTagName('html')[0].style.fontSize;

  return x*parseInt(fontSize);
}

function filterLineData(data,str) {
  let newArr = [];
  if (data instanceof Array) {
      for (let i in data) {
        newArr.push(data[i][str])
      }
    return newArr
  } else {
    newArr[0] = data[str];
    return newArr
  }
}


export {setFontSize,filterLineData}
